package com.road.service;

import java.sql.SQLException;
import java.util.List;

import com.road.model.News;

public interface INewsService {
    //获取新闻列表
	List<News> getNewsListByConditions(News news,String num,String tonum)throws SQLException;
	 //获取新闻轮播
	List<News> getNewsListCarouselTop5()throws SQLException;
	
	//插入新闻列表
	boolean saveBatchNews(List<News> newsList)throws SQLException;
	
    //获取新闻详情
	News getNewsContent(News newsId,String phone) throws SQLException;
	
	//根据id删除
	boolean deleteBatchNewsbyId(String[] newsIds) throws SQLException;
	
	//更新点赞数据addOrdel=+1或-1
	boolean updatePraiseBy(String newsIds,int addOrdel) throws SQLException;
	//更新浏览量
	boolean updateSeeTimesBy(String newsIds) throws SQLException;
	//更新评论次数addOrdel=+1或-1
	boolean updateCommentTimesBy(String newsIds,int addOrdel) throws SQLException;
	//根据列明获取次数	
	int getSeeTimesOrCommentOrSeeByNewsIds(String clum,String newsIds) throws SQLException;
}
